home *** CD-ROM | disk | FTP | other *** search
/ Apple Macintosh CD: Powe…osh 6100/7100/8100 Series / Apple Macintosh CD - Power Macintosh 6100, 7100, 8100 series.7z / Apple Macintosh CD - Power Macintosh 6100, 7100, 8100 series.bin / Power Macintosh Demo Apps / Segue / standard.t < prev    next >
Text File  |  1994-01-12  |  2KB  |  108 lines

  1. /*
  2. **  standard.t
  3. **
  4. **  Standard definitions for T.
  5. **
  6. **  Copyright (c) 1992,1993 by Segue Software, Inc.
  7. **  All Rights Reserved.
  8. */
  9.  
  10. /****************************************************************************/
  11.  
  12. /*** CONSTANTS ***/
  13.  
  14. const hHost = <<HANDLE>> 1;
  15.  
  16. /*** T RUNTIME EXCEPTION NUMBERS ***/
  17.  
  18. const E_ABORT          = -1;
  19. const E_ACCESS         = -2;
  20. const E_ARRAY_SIZE     = -3;
  21. const E_ASSERT_FAILED  = -4;
  22. const E_ASSIGN         = -5;
  23. const E_BAD_ARG        = -6;
  24. const E_BAD_INDEX      = -7;
  25. const E_BUSY           = -8;
  26. const E_CLASS_MISMATCH = -9;
  27. const E_CONST          = -10;
  28. const E_DEADLOCK       = -11;
  29. const E_DISABLED       = -12;
  30. const E_DIVIDE_BY_ZERO = -13;
  31. const E_DRIVER         = -14;
  32. const E_HANDLE         = -15;
  33. const E_INCOMPAT_TYPES = -16;
  34. const E_INTERNAL       = -17;
  35. const E_LIST_FULL      = -18;
  36. const E_NO_RETVAL      = -19;
  37. const E_NULL           = -20;
  38. const E_NUM_ARGS       = -21;
  39. const E_SEMAPHORE      = -22;
  40. const E_STR_OVERFLOW   = -23;
  41. const E_SYSTEM         = -24;
  42. const E_TIMER          = -25;
  43. const E_TYPE_MISMATCH  = -26;
  44. const E_UNDEFINED      = -27;
  45. const E_UNSUPPORTED    = -28;
  46. const E_VAR_EXPECTED   = -29;
  47. const E_VAR_NOT_SET    = -30;
  48. const E_WINDOW_TAG     = -31;
  49. const E_ZERO_STEP      = -32;
  50.  
  51. /*** COMMON TEST DRIVER EXCEPTIONS ***/
  52.  
  53. const E_TD_ABORT            = -10000;
  54. const E_TD_BAD_ARG          = -10100;
  55. const E_TD_FILE_ERROR       = -10200;
  56. const E_TD_INVALID_REQUEST  = -10300;
  57. const E_TD_OUT_OF_MEMORY    = -10400;
  58. const E_TD_UNKNOWN_FUNCTION = -10500;
  59.  
  60. /*** DATA TYPES ***/
  61.  
  62. type HFILE is handle;
  63. type HTIMER is handle;
  64. type HMACHINE is handle;
  65. type HDRIVER is handle;
  66.  
  67. type FILEMODE is enum
  68. {
  69.     FM_READ, FM_WRITE, FM_APPEND
  70. }
  71.  
  72. type CALL is record
  73. {
  74.     string sFunction;
  75.     string sModule;
  76.     integer iLine;
  77. }
  78. type CALL_LIST is list of CALL;
  79.  
  80. type FILEINFO is record
  81. {
  82.     string sName;
  83.     boolean bIsDir;
  84.     integer iSize;
  85. }
  86. type FILEINFO_LIST is list of FILEINFO;
  87.  
  88. type GUITYPE is enum
  89. {
  90.     GT_MAC, GT_MSW, GT_MOTIF, GT_OPENLOOK, GT_PM
  91. }
  92.  
  93. const GT_MWM = GT_MOTIF;  // for backward compatiblity
  94.  
  95. type TIMERSTATE is enum
  96. {
  97.     TS_STARTED, TS_STOPPED, TS_PAUSED
  98. }
  99.  
  100. /*** SYSTEM DRIVER DECLARATION ***/
  101.  
  102. driver "SYSTEM"
  103.  
  104.     autoload
  105.     cmdline "systd"
  106.  
  107. {
  108. }